package com.t282.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Chen
 * @since 2021-05-19
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="SysRole对象", description="")
public class SysRole extends Model<SysRole> {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "编号")
        @TableId(value = "role_id", type = IdType.AUTO)
      private Long roleId;

      @ApiModelProperty(value = "角色名称")
      private String roleName;

      @ApiModelProperty(value = "角色描述")
      private String roleDesc;

      @ApiModelProperty(value = "状态")
      private Integer roleFlag;


    @Override
    protected Serializable pkVal() {
          return this.roleId;
      }

}
